home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / idt.zip / GETARGS.H < prev    next >
Text File  |  1988-03-29  |  636b  |  28 lines

  1. /*    .TITLE "getargs - definitions"    */
  2. /*
  3. **    Getargs.h    Typedefs and defines needed for getargs
  4. */
  5.  
  6. #define    INTEGER        0
  7. #define BOOLEAN     1
  8. #define CHARACTER    2
  9. #define    UCHARACTER    3
  10. #define STRING        4
  11. #define PROC        5
  12. #define    LONG        6
  13.  
  14. typedef struct
  15.     {
  16.     unsigned    arg  : 7  ;    /* Command line switch        */
  17.     unsigned    type : 4  ;    /* variable type        */
  18.     void        *variable ;    /* pointer to variable        */
  19.     char        *errmsg      ;    /* pointer to error message */
  20.     } ARG;
  21.  
  22. #ifdef NOUSAGE
  23. int getargs0( int argc, char *argv[] , ARG *tabp, int tabsize );
  24. #else
  25. int getargs( int argc, char *argv[] , ARG *tabp, int tabsize );
  26. #endif
  27.  
  28.